package com.chinasoft.ecommerceconsumptionanalysissystem.service.impl;

import com.chinasoft.ecommerceconsumptionanalysissystem.mapper.CategoryByAgeLayerMapper;
import com.chinasoft.ecommerceconsumptionanalysissystem.pojo.CategoryByAgeLayer;
import com.chinasoft.ecommerceconsumptionanalysissystem.service.CategoryByAgeLayerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryByAgeLayerServiceImpl implements CategoryByAgeLayerService {
    @Autowired
    private CategoryByAgeLayerMapper categoryByAgeLayerMapper;

    @Override
    public List<CategoryByAgeLayer> selectAll() {
        return categoryByAgeLayerMapper.selectAll();
    }

    @Override
    public int insert(CategoryByAgeLayer categoryByAgeLayer) {
        return categoryByAgeLayerMapper.insert(categoryByAgeLayer);
    }
}
